home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
program
/
tcqbsnip.zip
/
BLINK.BAS
< prev
next >
Wrap
BASIC Source File
|
1997-06-20
|
2KB
|
53 lines
' BLINK.BAS
' by Tika Carr
'
' Donated to the public domain
' No warranties or guarantees are expressed or implied.
'
' Purpose: Allow use of blinking or high intensity background
'
' Start QuickBasic with: QB /L QB.QLB
'
' NOTES: For the first color, you must add 16 to the color that should be
' Displayed. ie. for COLOR 14, 11, use COLOR 30, 11 (14 + 16 = 30)
'
' If you still get blinks, set blink to 1, then immediately to 0
' again.
DECLARE SUB blink (flag%)
'$INCLUDE: 'qb.bi'
blink 0 'Turn on high intensity background support for CGA text.
COLOR 30, 12 'Yellow on bright red
CLS
PRINT "Press any key to see something else..."
Pause$ = INPUT$(1)
COLOR 14, 12 'This is what happens when you use normal colors
PRINT "If you don't add 16 to the foreground color, it automatically turns"
PRINT "off the high intensity bit!"
PRINT : PRINT "Press any key for more..."
Pause$ = INPUT$(1)
COLOR 17, 12 ' Dark Blue on bright red.
PRINT "Now we have it back on again!"
PRINT : PRINT "Press any key to turn off the blink bit..."
Pause$ = INPUT$(1)
blink 1 'Turn off high intensity background support
COLOR 30, 12
PRINT "Now we are doing a COLOR 30, 12 here without high intensity on..."
PRINT "Press any key to continue."
Pause$ = INPUT$(1)
COLOR 1, 12
PRINT "This is COLOR 1, 12. The background is low intensity, but no blink."
SUB blink (flag%)
DIM Inregs AS RegType, Outregs AS RegType
Inregs.ax = &H1003
Inregs.bx = 0
IF flag% = 1 THEN Inregs.bx = 1
CALL INTERRUPT(&H10, Inregs, Outregs)
END SUB